﻿#ifndef RECORDTABLE_H
#define RECORDTABLE_H

#include <QWidget>
#include <QMenu>
#include <QToolButton>
#include <QSpinBox>
#include <QLabel>
#include <QJsonObject>
#include <QPushButton>
#include <QTableView>
#include "RecordTableModel.h"


class RecordTable : public QWidget
{
    Q_OBJECT
public:
    explicit RecordTable(QWidget *parent = nullptr);

signals:

private:
    void setupUi();
    void initConnection();

//var
public:
    RecordTableModel* model;

//control
public:
    QTableView* tblView;
    QMenu *headerMenu = nullptr;
    QAction *actHideItem;
    QAction *actAscend;
    QAction *actDescend;
    QAction *actReshowItem;

    QToolButton *tbtnPageFirst;
    QToolButton *tbtnPageLast;
    QToolButton *tbtnPageDown;
    QToolButton *tbtnPageUp;
    QToolButton *tbtnPageJump;
    QPushButton* pbtnExportData;
    QSpinBox *spboxPageNow;
    QLabel *lblPageAll;

};

#endif // RECORDTABLE_H
